package com.ph.constant;

/**
 * 
* @ClassName: ResultEnum  
* @Description: 返回结果集 常量  
* @author lijie  
* @date 2017年3月29日  
*
 */
public enum PsResultEnum {

	SUCCESS(200,"操作成功"),FAIL(300,"操作失败"),SERVER_ERROR(400,"服务器错误");
	/**
	 * 状态编码
	 */
	private int code;
	/**
	 * 状态描述
	 */
	private String msg;
	
	private PsResultEnum(int code,String msg){
		this.code = code;
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
	
}
